package com.ll.xiaonew.home.controller;

import com.ll.xiaonew.commons.core.utils.R;
import com.ll.xiaonew.system.api.HomePictureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author new
 * @date 2023/4/7 22:08
 * 首页轮播图
 */
@RestController
@RequestMapping("/home/picture")
public class HomeController {
    @Autowired
    private HomePictureService homePictureService;

    @GetMapping("/findCurrentList")
    public R findCurrentList(){
        List list = homePictureService.showPictureForToday();
        return R.success().put("data",list);
    }
}
